<?php
require_once(dirname(__FILE__) . '/PortalUtil.class.php');

class Portal extends PortalUtil {
	public $tbl = Constant::tbl_wifi_user;

	function __construct() {
		$request['update'] = '$Date: 2009/02/16 07:36:07 $';
		$request['revision'] = '$Revision: 1.1 $';

		parent::__construct($request);
	}

	/**
	 *
	 *
	 * @param Controler $controller
	 * @param array $request
	 */
	function layout($controller, $request) {
		$this->pretreat($controller);
		
		$this->nav['home'] = true;
		
		$this->_wifidog($request);
		
		$this->_mac($request);
		
		$gw_id = $this->_dog_id($request);
		
		$controller->display($request, 'index');
		
		return true;
	}
	
	function _mac($request) {
		require_once(dirname(__FILE__) . '/Mac.class.php');
		$aa = new Mac();
		
		$aa->_update1($request);
	}
	
	function contact($controller, $request) {
		$this->pretreat($controller);
	
		$this->nav['home'] = true;
	
		$controller->display($request, 'contact');
		return true;
	}
	
	function about($controller, $request) {
		$this->pretreat($controller);
	
		$this->nav['home'] = true;
	
		$controller->display($request, 'about');
		return true;
	}
}
?>
